# 生成一个编号

from datetime import *
import random

def serial():
    nowTime = datetime.now().strftime("%Y%m%d%H%M%S")  # 生成当前的时间
    randomNum = random.randint(0, 100)  # 生成随机数n,其中0<=n<=100
    if randomNum <= 10:
        randomNum = 0 + randomNum
    uniqueNum = int(nowTime) + randomNum
    return uniqueNum
